package com.sdstc.modules.eneity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * @author ：wk
 * @date ：Created in 2022/10/21 13:26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("plan_file")
public class PlanFileEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String id;

    //文件名称
    private String fileName;

    //批准编号
    private String approvalNo;

    //批准机关
    private String approvalOffice;

    //发文时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sendTime;

    // 文件路径
    private String filePath;

    // 文件类型
    private String fileType;

    // 临时id
    private String tempVersionId;

    // 方案id
    private String planId;

    @TableField(exist = false)
    private MultipartFile file;

    // 确定事项
    private String determineThing;

}
